import Vue from 'vue'
import VueRouter from 'vue-router'
// import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  // {
  //   path: '/',
  //   name: 'Home',
  //   component: Home
  // },
  {
    path: '/tree',
    name: 'Tree',
    component: () => import(/* webpackChunkName: "about" */ '../components/classTree/index.vue')
  },
  {
    path: '/audio',
    name: 'Audio',
    component: () => import(/* webpackChunkName: "about" */ '../components/audioDemo/index.vue')
  },
  {
    path: '/huaciaoliang',
    name: 'Huaci',
    component: () => import(/* webpackChunkName: "about" */ '../components/highlight/index.vue')
  },
  {
    path: '/',
    name: 'Home',
    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  },
  {
    path: '/res',
    name: 'Res',
    component: () => import(/* webpackChunkName: "about" */ '../views/Res.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router
